package lee;

import java.util.Scanner;

public class J09SungJuk {
	// 메서드를 이용한 성적 처리
	public static void main(String[] args){
		String name = "";
		int kor = 0,eng = 0, mat = 0, tot = 0;
		double avg = 0;
		char grd = ' ';
		Scanner sc = null;
		String result = "";
		
		inputSungJuk(sc, name, kor, eng, mat);
		getTotal(kor, eng, mat);
		getAvgerage(tot);
		getGrade(avg);
		
		System.out.println(name);
		System.out.println(kor);
		System.out.println(eng);
		System.out.println(tot);
		System.out.println(avg);
		System.out.println(grd);

		
	} // main
	
	public static void inputSungJuk(Scanner sc, String name, int kor, int eng, int mat){
		
		sc = new Scanner(System.in);
		System.out.println("이름을 입력하시요..");
		name = sc.next();
		System.out.println("국어 성적을 입력하시요..");
		kor = sc.nextInt();
		System.out.println("영어 성적을 입력하시요..");
		eng = sc.nextInt();
		System.out.println("수학 성적을 입력하시요..");
		mat = sc.nextInt();
		
		sc.close();
		
		
	}
	
	public static void getTotal( int kor, int eng ,int mat){
		int tot = kor + eng + mat;
	}
	
	public static void getAvgerage(int tot){
		double avg = (double) (tot) / 3;
	}
	
	public static void getGrade(double avg){
		char grd;
		switch((int)avg / 10){
		case 10 : 
		case 9 : grd = '수'; break;
		case 8 : grd = '우'; break;
		case 7 : grd = '미'; break;
		case 6 : grd = '양'; break;
		default : grd = '가';
		}
	}
	
	
}
